package buaa.paas.dao;

import buaa.paas.model.Image;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ImageMapper {

    List<Image> findImage(Integer UserID);

    Image findImageById(String ImageId);

    List<Image> getAllImages();

    void createImage(Image app);

    void deleteImage(String AppID);

    void updateImageName(@Param("NewName") String NewName, @Param("ImageID") int ImageID);
}
